#include "log/Log.h"
#include "net/TcpServer.h"
#include "net/IPAddress.h"
#include "net/EventLoop.h"

using namespace log;
using namespace utils;
using namespace net;
using namespace std;


int main(int argc, char const *argv[])
{
    EventLoop::ptr ptrLoop = std::make_shared<EventLoop>();
    IPAddress::ptr ptrAddr = std::make_shared<IPv4Address>("127.0.01", 8080);

    TcpServer server(ptrLoop, ptrAddr);
    server.start();

    ptrLoop->loop();
    return 0;
}
